import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/wa_pull/getList',
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: '/wa_pull/getInfo',
    method: 'post',
    data
  })
}

export function getLogList(data) {
  return request({
    url: '/wa_pull/getLogList',
    method: 'post',
    data
  })
}
export function loadTaskData(data) {
  return request({
    url: '/wa_pull/loadTaskData',
    method: 'post',
    data
  })
}

export function filterPhone(data) {
  return request({
    url: '/wa_pull/filterPhone',
    method: 'post',
    data
  })
}

export function makeOutputKey(data) {
  return request({
    url: '/wa_pull/makeOutputKey',
    method: 'post',
    data
  })
}

export function create(data) {
  return request({
    url: '/wa_pull/create_admin',
    method: 'post',
    data
  })
}

export function stop(data) {
  return request({
    url: '/wa_pull/stop',
    method: 'post',
    data
  })
}


export function groupList(data) {
  return request({
    url: '/whatsappGroup/getList',
    method: 'post',
    data
  })
}

export function changeName(data) {
  return request({
    url: '/whatsappGroup/changeName',
    method: 'post',
    data
  })
}

export function chatSet(data) {
  return request({
    url: '/whatsappGroup/chatSet',
    method: 'post',
    data
  })
}

export function killAdminDevice(data) {
  return request({
    url: '/whatsappGroup/killAdminDevice',
    method: 'post',
    data
  })
}

export function leave(data) {
  return request({
    url: '/whatsappGroup/leave',
    method: 'post',
    data
  })
}
